/**
 * 市区的中心点
 */
define([
    "dojo/_base/declare",
//    "gistech/widgets/baseWidget/BaseWidget",
    "dijit/_WidgetBase",
    "dojo/_base/lang",
    "dojo/topic",
    "dojo/dom-style",
    "dojo/dom-construct",
    "dojo/on",
    "dojo/_base/connect",
    "gistech/util/ajaxUtil",
    "gistech/util/symbolUtil",
    "dojo/dom-style","dojo/query","dojo/dom-class","dojo/topic",
    "esri/layers/FeatureLayer","esri/layers/GraphicsLayer","esri/InfoTemplate",
     "esri/geometry/Polygon","esri/graphic",
    "esri/tasks/QueryTask","esri/tasks/query","gistech/util/mapUtil","esri/geometry/Point",
    "esri/SpatialReference", "gistech/widgets/ClusterInfoWindow/ChartWidget","esri/layers/ArcGISDynamicMapServiceLayer"
    ],
    function(declare,BaseWidget,lang,topic,style,domConstruct,on,eventconnect,ajaxUtil,
    		symbolUtil,domStyle,query,domClass,topic
    		,FeatureLayer,GraphicsLayer,InfoTemplate,Polygon,Graphic,QueryTask,ArcQuery,mapUtil,Point,SpatialReference,ChartWidget 
    		,ArcGISDynamicMapServiceLayer
    		){
        return declare([BaseWidget],{
        
        container:null,
        constructor:function (args) {
        	this.inherited(arguments);
        },
        postCreate:function(){
            this.inherited(arguments);
            this.init();
            
        },
        /**
         * 初始化
         */
        init:function () {
        	ioc.map.shifeatures=[
        			{name:'佛山市',point:new Point(12573908.342197146,2632849.9627818814,new SpatialReference({latestWkid:3857,wkid:102100}))},
        			{name:'清远市',point:new Point(12593951.021136917,2713140.7736392543,new SpatialReference({latestWkid:3857,wkid:102100}))},
        			{name:'东莞市',point:new Point(12676967.700397378,2623703.3407087238,new SpatialReference({latestWkid:3857,wkid:102100}))},
        			{name:'珠海市',point:new Point(12608617.95150492,2529614.180140858,new SpatialReference({latestWkid:3857,wkid:102100}))},
        			{name:'深圳市',point:new Point(12705001.077460526,2589811.2090053065,new SpatialReference({latestWkid:3857,wkid:102100}))},
        			{name:'惠州市',point:new Point(12743230.88046061,2635681.8425097326,new SpatialReference({latestWkid:3857,wkid:102100}))},
        			{name:'广州市',point:new Point(12639572.862866234,2672612.203776376,new SpatialReference({latestWkid:3857,wkid:102100}))},
        			{name:'长沙市',point:new Point(12580846.901395278,3266216.480348942,new SpatialReference({latestWkid:3857,wkid:102100}))},
        			{name:'中山市',point:new Point(12622841.966874117,2575193.3071406633,new SpatialReference({latestWkid:3857,wkid:102100}))}
        	];
        	ioc.map.qufeatures=[
					{name:'光明新区',point:new Point(12682561.302264413,2603153.7497121226,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'从化区',point:new Point(12654875.755267186,2714134.2464569025,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'白云区',point:new Point(12615162.17557315,2667066.555151698,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'番禺区',point:new Point(12624351.951780302,2628840.544514817,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'海珠区',point:new Point(12615493.39437077,2641893.570125754,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'花都区',point:new Point(12602980.425218975,2685633.946493653,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'荔湾区',point:new Point(12604476.33539899,2642651.86946728,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'荔湾区',point:new Point(12604476.33539899,2642651.86946728,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'萝岗区',point:new Point(12635638.126960473,2658301.338446367,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'南沙区',point:new Point(12638443.355470365,2601768.6367466114,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'天河区',point:new Point(12620986.096197166,2651329.3982224357,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'越秀区',point:new Point(12610434.816918986,2648096.119539165,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'增城区',point:new Point(12664147.068983637,2673285.059613784,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'南山区',point:new Point(12684458.110203654,2578126.6610500524,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'福田区',point:new Point(12696033.997885447,2577152.5693481904,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'罗湖区',point:new Point(12707214.125934422,2580561.7439181316,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'盐田区',point:new Point(12720419.964205043,2583287.6764687095,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'龙华新区',point:new Point(12694640.111454217,2592810.588904203,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'坪山新区',point:new Point(12730746.95217404,2594563.0477459654,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'龙岗区',point:new Point(12714792.389838748,2595179.4264962003,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'大鹏新区',point:new Point(12746287.392978055,2580917.0727168336,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'芙蓉区',point:new Point(12583679.421480395,3270273.801460075,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'城乡片区',point:new Point(12663670.300119845,2633604.3035587086,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'山区片区',point:new Point(12702004.435362922,2611559.0397464763,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'埔田片区',point:new Point(12682504.531176237,2641481.4226982174,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'水乡片区',point:new Point(12649572.34703331,2636700.561846163,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'谢岗镇',point:new Point(12698664.683448061,2629745.217642531,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'沿海片区',point:new Point(12656145.162121253,2613726.222356851,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'丘陵片区',point:new Point(12677303.503941584,2623651.699287487,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'惠阳区',point:new Point(12739863.738894293,2620709.6579752,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'大亚湾区',point:new Point(12751097.293863475,2601597.0087388647,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'惠城区',point:new Point(12743859.77044497,2651118.9837409076,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'雨花区',point:new Point(12581080.548378404,3261546.0828801566,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'岳麓区',point:new Point(12567528.802547626,3265660.1686464343,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'雨花区',point:new Point(12581080.547514763,3261546.081504352,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'岳麓区',point:new Point(12567528.802547626,3265660.1686464343,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'天心区',point:new Point(12575409.154358814,3260079.8143320368,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'芙蓉区',point:new Point(12583679.421524094,3270273.801470401,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'天心区',point:new Point(12575409.154358814,3260079.8143320368,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'三水区',point:new Point(12567819.068169635,2666914.839640903,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'清城区',point:new Point(12593951.021136917,2713140.7736392543,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'南海区',point:new Point(12583058.781333055,2640470.2293604654,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'禅城区',point:new Point(12585959.874084257,2631537.3368886593,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'顺德区',point:new Point(12599602.744376248,2612808.637657862,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'高明区',point:new Point(12543464.534415338,2610392.0904626343,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'香洲区',point:new Point(12638046.347260278,2546308.425207362,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'斗门区',point:new Point(12607176.619415019,2539226.1932612294,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'金湾区',point:new Point(12610369.296953985,2517937.5623723012,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'宝安区',point:new Point(12674798.834152086,2592907.1188061074,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'中心区',point:new Point(12663670.298518391,2633604.303227837,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'东南区',point:new Point(12702004.435844894,2611559.039839197,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'东北区',point:new Point(12691813.740735231,2634720.6698171967,new SpatialReference({latestWkid:3857,wkid:102100}))},
					{name:'黄埔区',point:new Point(12635638.127014328,2658301.3384585977,new SpatialReference({latestWkid:3857,wkid:102100}))}
        	 ]
        },
        startup:function(){
            this.inherited(arguments);
        }
       
        
      
        
     });
});

